#!/usr/bin/env bash

FWDIR="$(cd `dirname $0`; pwd)"
LOCAL_DIR=$FWDIR/dist/

TARGET_SERVER=root@122.9.45.183
REMOTE_DIR=/usr/share/nginx/html/

rsync -zvru -W  --delete --progress  -P --rsh="ssh" \
     $LOCAL_DIR $TARGET_SERVER:$REMOTE_DIR
